package com.sheep.opt;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import org.apache.log4j.Logger;

public class OpUniq {
	public Object result;
	private String sql;
	
	public OpUniq(String sql) {
		this.sql = sql;
		result = null;
	}
	
	public final String getSql() {
		return sql;
	}
	
	public void setParam(PreparedStatement ps) throws SQLException {
	}

	public Object parse(ResultSet rs) throws SQLException {
		return null;
	}

	public final Object getResult() {
		return result;
	}
	
	public final void add(Object ob) {
		result = ob;
	}
	
	public void log(Logger log) {
		if (log.isDebugEnabled()) {
			log.debug(getSql());
		}
	}
}